$(function(){
	//当前求职状态的鼠标单击事件
	//离职-随时到岗
	$("[ka='applystatus-3']").on("click",function(){
		$("[ka='applystatus-3']").css({"border-color":"#18c3b1","background-color":"#effbfa"});
		$("[ka='applystatus-0']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
		$("[ka='applystatus-1']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
		$("[ka='applystatus-2']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
	});
	//在职-月内到岗
	$("[ka='applystatus-2']").click(function(){
		$("[ka='applystatus-2']").css({"border-color":"#18c3b1","background-color":"#effbfa"});
		$("[ka='applystatus-0']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
		$("[ka='applystatus-1']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
		$("[ka='applystatus-3']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
	});
	//在职-考虑机会
	$("[ka='applystatus-1']").click(function(){
		$("[ka='applystatus-1']").css({"border-color":"#18c3b1","background-color":"#effbfa"});
		$("[ka='applystatus-0']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
		$("[ka='applystatus-3']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
		$("[ka='applystatus-2']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
	});
	//在职-暂不考虑
	$("[ka='applystatus-0']").click(function(){
		$("[ka='applystatus-0']").css({"border-color":"#18c3b1","background-color":"#effbfa"});
		$("[ka='applystatus-3']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
		$("[ka='applystatus-1']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
		$("[ka='applystatus-2']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
	});
	//在校生-找实习
	$("[ka='freshgraduate-2']").click(function(){
		$("[ka='freshgraduate-2']").css({"border-color":"#18c3b1","background-color":"#effbfa"});
		$("[ka='freshgraduate-1']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
	});
	//应届生-找工作
	$("[ka='freshgraduate-1']").click(function(){
		$("[ka='freshgraduate-1']").css({"border-color":"#18c3b1","background-color":"#effbfa"});
		$("[ka='freshgraduate-2']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
	});
	
	$("[ka='gender-1']").click(function(){
		$("[ka='gender-1']").css({"border-color":"#18c3b1","background-color":"#effbfa"});
		$("[ka='gender-0']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
	});
	//性别的单击事件
	$("[ka='gender-0']").click(function(){
		$("[ka='gender-0']").css({"border-color":"#18c3b1","background-color":"#effbfa"});
		$("[ka='gender-1']").css({"background-color":"#fff","border":"1px solid #e3e7ed"});
	});
	//判断姓名是否为空
	$(".btn-primary").click(function(){
		var name = $(".user-name").val();
		if (name == "") {
			$(".item-content-name").append("<div class='form-error-tip'>请输入姓名</div>");
		}if(name != ""){
    		$(".item-content-name>div[class='form-error-tip']").remove();
    	}
	});
	//判断出生日期是否为空
	 $(".btn-primary").click(function(){
    	var birth = $(".birth").val();
    	if(birth == ""){
    		$(".item-content-birth").append("<div class='form-error-tip'>请输入出生日期</div>");
    	}else if(wrap != ""){
    		$(".item-content-birth>div[class='form-error-tip']").remove();
    	}
    });
    //判断工作日期是否为空
    $(".btn-primary").click(function(){
    	var work = $(".work").val();
    	if(work== ""){
    		$(".item-content-work").append("<div class='form-error-tip'>请输入工作日期</div>");
    	}else if(wrap != ""){
    		$(".item-content-work>div[class='form-error-tip']").remove();
    	}
    });
	$(".btn-primary").click(function(){
		var name = $(".user-name").val();
		var birth = $(".birth").val();
		var work = $(".work").val();
		if(name != "" && birth != "" && work != ""){
			window.location.href="../10-10/index.html";
		}
	});
})
